package com.pansoft.openplanet.bean;

/**
 * 我的资源对象
 */
public class BoxResourceBean {

    private String name;
    private String size;
    private String url;

    private Object preImage;
    private String time;
    private String type;

    public BoxResourceBean() {
    }

    private BoxResourceBean(Builder builder) {
        setName(builder.name);
        setSize(builder.size);
        setUrl(builder.url);
        setPreImage(builder.preImage);
        setTime(builder.time);
        setType(builder.type);
    }


    public String getType() {
        return type;
    }

    public BoxResourceBean setType(String type) {
        this.type = type;
        return this;
    }

    public String getName() {
        return name;
    }

    public BoxResourceBean setName(String name) {
        this.name = name;
        return this;
    }

    public String getSize() {
        return size;
    }

    public BoxResourceBean setSize(String size) {
        this.size = size;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public BoxResourceBean setUrl(String url) {
        this.url = url;
        return this;
    }

    public Object getPreImage() {
        return preImage;
    }

    public BoxResourceBean setPreImage(Object preImage) {
        this.preImage = preImage;
        return this;
    }

    public String getTime() {
        return time;
    }

    public BoxResourceBean setTime(String time) {
        this.time = time;
        return this;
    }


    public static final class Builder {
        private String name;
        private String size;
        private String url;
        private Object preImage;
        private String time;
        private String type;

        public Builder() {
        }

        public Builder name(String val) {
            name = val;
            return this;
        }

        public Builder size(String val) {
            size = val;
            return this;
        }

        public Builder url(String val) {
            url = val;
            return this;
        }

        public Builder preImage(Object val) {
            preImage = val;
            return this;
        }

        public Builder time(String val) {
            time = val;
            return this;
        }

        public Builder type(String val) {
            type = val;
            return this;
        }

        public BoxResourceBean build() {
            return new BoxResourceBean(this);
        }
    }
}
